Skip to content

test: fix consistent partition window test for urn-based extension API#166

Merged
tokoko merged 1 commit into
substrait-io:mainfrom
nielspardon:fix-consistent-partition-window-test
Jun 3, 2026
Merged

test: fix consistent partition window test for urn-based extension API#166
tokoko merged 1 commit into
substrait-io:mainfrom
nielspardon:fix-consistent-partition-window-test

Conversation

@nielspardon
Copy link
Copy Markdown
Member

@nielspardon nielspardon commented Jun 3, 2026

Summary

The main CI is red because test collection fails on
tests/builders/plan/test_consistent_partition_window.py, which cancels the
whole test matrix.

The test (added in #158) was written against the older uri-based extension
API, but the codebase has since migrated to urns. Two stale references
remained:

  • register_extension_dict(..., uri=...): the uri keyword no longer exists,
    causing a TypeError at collection time. The URN is now supplied via the
    urn: field already present in the test's YAML, so the kwarg is removed.
  • extension_uris=list(lead_ee.extension_uris): this proto field was renamed to
    extension_urns (already present on the preceding line). This second error
    was masked by the collection failure.

Test plan

  • pytest tests/builders/plan/test_consistent_partition_window.py -> 8 passed
  • Full suite -> 231 passed, 3 xfailed

The ConsistentPartitionWindowRel test was written against the older
uri-based extension API and broke after the migration to urns:

- register_extension_dict() no longer accepts a `uri` keyword; the URN is
  supplied via the `urn:` field already present in the test YAML.
- Plan.extension_uris was renamed to extension_urns.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@github-actions

This comment was marked as resolved.

@tokoko tokoko merged commit 1b77d17 into substrait-io:main Jun 3, 2026
20 of 21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants